package com.wehealth.util;

import java.text.SimpleDateFormat;

import android.util.Log;

/**
 * task请求的地址
 * @author 侯康生
 *
 */
public class GetUrl {
	//请求的头地址
	public static final String hostUrl = "http://www.552120.com/";
	public static final String hostUrl2 ="http://www.552120.com:8092/";
	
	/**
	 * 请求咨询医生列表
	 * @param state
	 * @param sortName
	 * @return
	 */
	public static String Dr_GetList(String state,String sortName){
		return hostUrl+"API/Dr_GetList.aspx?state="+state+"&sortName="+sortName;
	}
	
	
	//今日计划
	public static String Plan_GetDay(int userID, int planID, int weekday){
		
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 
		String nowDate = sdf.format(new java.util.Date());
		
		String url =  hostUrl+"API/Plan_GetWeekDay.aspx?userID="+userID+"&planID="+planID+"&weekday="+weekday+"&nowDate="+nowDate;
	
		Log.i("url:", url);
		
		return url;
	}
	
	//SIMMON_ADD
	//健康计划表
	public static String Plan_GetHealthSum(){
			return hostUrl+"API/Plan_GetHealthSum.aspx";
	}
	
	//消息列表
	public static String Message_GetList(){
		 return hostUrl+"API/Message_GetList.aspx";
	}
	
	//提交
	public static String  SubmitDataUrl(){
		
		return hostUrl+":8092/Question_Add.aspx";
	}
	
	//医生信息
	public static String  Doctor_InfoUrl(){

		return hostUrl+"API/Dr_GetInfo.aspx";
	}
	
	//登录
	
	public static String Login_Url(){
		//http://www.552120.com/API/User_Login.aspx?loginname=15230188853&password=111111
			return hostUrl+"API/User_Login.aspx";
	}
	
	//注册
	
	public static String Register_Url(){
	    //http://www.552120.com/API/User_Reg.aspx?loginName=stormer101010&password=123123&amp;sex=男&amp;phone=15230188888
	            return hostUrl+"API/User_Reg.aspx";
	}
	
	// 验证码
	public static String GetVerifyCode_Url(){
	    return hostUrl+"API/SMS_Send.aspx";
	}
	
	//个人信息修改
	public static String GetPersonInfoModify_Url(){
		return hostUrl+"API/User_UpdatePersonalInfo.aspx";
	}
	
	//获取个人信息
	public static String GetPersonInfo_Url(){
	    // http://www.552120.com/API/User_GetPersonalInfo.aspx?userID=1
	    return hostUrl+"API/User_GetPersonalInfo.aspx";
	}
	
	//获取咨询记录
	public static String GetQuestion_Url(){
		return  "http://www.552120.com:8092/Question_GetList.aspx"; //hostUrl+"API/User_GetPersonalInfo.aspx";
	}
	
	//健康查询
	//获取食物分类
	
	public static String GetHealthSearch_Food_Url(){
	    String url =hostUrl2+"Foods_GetSort.aspx";
	    return url;
	}
	
	//获取食物具体的内容
	public static String GetHealthSearch_FoodSortID_Url(){
	        String url =hostUrl2+"Foods_GetListBySort.aspx";
	        return url;
	 }
	
	//获取食物详情的内容
	public static String GetHealthSearch_FoodInfo_Url(){
		//http://www.552120.com:8092/Foods_GetFoodInfo.aspx?ID
	        String url =hostUrl2+"Foods_GetFoodInfo.aspx";
	        return url;
	 }
	
	//
	public static String GetHealthSearch_SportLevel_Url(){
		 //http://www.552120.com:8092/Exercise_GetLevel.aspx
			 String url =hostUrl2+"Exercise_GetLevel.aspx";
			 return url;
	}
	
	public static String GetHealthSearch_SportLevelList_Url(){
		 //http://www.552120.com:8092/Exercise_GetList.aspx
			 String url =hostUrl2+"Exercise_GetList.aspx";
			 return url;
	}
	
	//运动详情
	public static String GetHealthSearch_SportInfo_Url(){
	   // http://www.552120.com:8092/Exercise_GetInfo.aspx?ID=3fa6e27d-c96e-4bcd-9e91-645497722014
	    String url =hostUrl2+"Exercise_GetInfo.aspx";
       return url;
	}
	
	//关键字搜索
	public static String GetHealthSearch_keyword_Url(){
	       // http://www.552120.com:8092/Exercise_Search.aspx?keyword=跑
	        String url =hostUrl2+"Exercise_Search.aspx";
	       return url;
	    }
	
	//http://www.552120.com:8092/Foods_Search.aspx?keyword=牛.
	   public static String GetHealthSearch_keyword_food_Url(){
            String url =hostUrl2+"Foods_Search.aspx";
           return url;
        }
}
